<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
		$sql="select * from `".$oto."_youhui_use_record`,`".$oto."_youhui` where ".$oto."_youhui_use_record.userId='{$user_id}' and ".$oto."_youhui_use_record.youhui_id=".$oto."_youhui.id";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		echo json_encode($person_info);
?>